package com.yycx.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yycx.common.mybatis.annotation.TableAlias;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 费用报销
 *
 * @author flyme
 * @date 2023-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_expense")
@TableAlias("expense")
@ApiModel(value = "BusExpense对象", description = "费用报销")
public class BusExpense extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "expenseId", type = IdType.ASSIGN_ID)
    private Long expenseId;

    @ApiModelProperty(value = "单号")
    private String expenseNo;

    @ApiModelProperty(value = "款项说明")
    private String expense;

    @ApiModelProperty(value = "申请金额")
    private BigDecimal expenseAmount;

    @ApiModelProperty(value = "款项类型")
    private String expenseType;

    @ApiModelProperty(value = "部门名称")
    private Long deptId;
    private Long companyId;

    @ApiModelProperty(value = "提交人")
    private Long userId;

    @ApiModelProperty(value = "日期")
    private String payDate;

    @ApiModelProperty(value = "审批状态")
    private Integer checkState;

    @ApiModelProperty(value = "业务员")
    private Long saleManId;

    @ApiModelProperty(value = "收款银行")
    private Long bankId;

    @ApiModelProperty(value = "备注")
    private String remark;

}
